@inherits BasePlugin
@namespace FluentCMS.Web.Plugins.Block

@if(Item != null)
{
    @if (ViewState.Page.HasAdminAccess && ViewState.Type == ViewStateType.PagePreview)
    {
        <InlineEditor Value="@Item.Content" OnCancel="@OnCancel" OnSave="@UpdateContent" />
    }
    else
    {
        <div class="f-block">
            @((MarkupString)Item.Content)
        </div>
    }
}
else if (ViewState.Page.HasAdminAccess)
{
    <BlockEmptyView OnBlockSelected="@SaveBlockContent" />
}
